export const getListPatrolRecord = async (pages) => {
  return new Promise((resolve, reject) => {
    fetch(
      `http://27.223.76.238:18081/device/move/listPatrolRecord?stationHash=8afbb638d61c1954b569db9a24b81313&pageNum=${pages.pageNum}&pageSize=${pages.pageSize}`,
      {
        method: 'get',
      },
    )
      .then(async (res) => {
        const list = await res.json()
        resolve(list)
      })
      .catch((err) => {
        reject(err)
      })
  })
}
